/**
 * java内置类型
 * 打印每种类型占用的位数
 */
package edu.gzz;

public class BuildInType {

	public static void main(String[] args) {
		int[] bytes = { Byte.SIZE, Short.SIZE, Integer.SIZE, Long.SIZE, Character.SIZE, Float.SIZE, Double.SIZE };
		String[] typename = { "byte", "short", "int", "long", "char", "float", "double" };

		for (int i = 0; i < typename.length; i++) {
			System.out.println("type:" + typename[i] + "\t" + "bytes:" + bytes[i]);
		}
	}
}
